package cn.com.fattiger.framework.cms.admin.common.dao;

import java.util.List;

import org.springframework.data.repository.Repository;

import cn.com.fattiger.framework.cms.admin.common.model.User;

/**
 * Created by Administrator on 2015/11/27.
 */
public interface UserRepository extends Repository<User, Integer> {
    User getUserById(Integer id);
    void save(User user);
    List<User> findUserByNameAndPass(String name,String pass);
    List<User> findAll();
    void delete(Integer id);
}
